home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2939 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  707 b 

  1. Path: conan.ids.net!scarney
  2. From: scarney@conan.ids.net (scarney)
  3. Newsgroups: comp.lang.c
  4. Subject: text file manipulation
  5. Date: 25 Jan 1996 03:20:39 GMT
  6. Organization: IDS World Network Internet Access Service, (401) 885-4243
  7. Message-ID: <4e6su7$6pu@paperboy.ids.net>
  8. NNTP-Posting-Host: conan.ids.net
  9.  
  10.  
  11. Another stupid question...
  12.  
  13. I'm trying to write a little program to modify the /etc/passwd 
  14. file...I'm curious how you take a line in a text file (like passwd) and 
  15. change it. Does fwrite append, or if the file index is in the middle of 
  16. the file will it overwrite whatever is there (i.e., do what I want to do 
  17. with the file). If not, could you use the FILE pointer to change the data?
  18.  
  19. Thanks.
  20.  
  21. --Seth
  22.  
  23.